Skip to main content

Hover

AutomatR.Windows.Activities.Hover

The "Hover" activity in AutomatR for Windows UI Automation simulates the action of moving the mouse pointer over a specified UI element on the application. This activity is often used for testing and interacting with UI elements that trigger events on hover.

Properties

NameDescription
Input
Windows SelectorA string defining the UI element to hover over. You can use the "Windows Selector" property or the "Windows Element" property to specify the UI element.
Windows ElementSelect the browse button to indicate the element on the app with the help of the Window selector window. You can use this property instead of the "Windows Selector."
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. String variables containing the desired display name.
Optional
TimeoutEnter the time (in seconds) for the activity to be executed before throwing an exception. If not provided, the default timeout is used (e.g., 5 seconds).
DelayEnter the wait time (in seconds) before starting the activity. This can be useful for handling synchronization issues. Default is 0 seconds.

How to use:

  1. Drag and drop the "Hover" activity onto the workflow.
  2. Configure the properties by either providing the Windows Selector or selecting the Windows Element with the help of the Window selector window.
  3. Optionally, set the timeout to control the maximum time for the activity to be executed before throwing an exception.
  4. Optionally, set the delay to wait before starting the hover action.
  5. Execute the workflow to simulate the mouse pointer hovering over the specified UI element.

Example: Consider an example where the "Hover" activity is used to simulate hovering over a button on a Windows application:

Hover:
Display Name: "Hover Submit Button"
Windows Selector: "Button[name='SubmitButton']"
Timeout: 10

In this example, the activity simulates the mouse pointer hovering over the UI element identified by the Windows Selector "Button[name='SubmitButton']" with a timeout of 10 seconds.